package com.kk.combination;


public class Client {
    public static void main(String[] args) {
        //学校下面是学院
        University university = new University("清华", "顶级大学");

        //学院下面是专业
        College college1 = new College("计算机学院", "010101");
        College college2 = new College("工程学院", "abab");

        //专业添加进学院
        college1.add(new Department("软件", "网络"));
        college1.add(new Department("软件1", "网络1"));
        college1.add(new Department("软件2", "网络2"));

        college2.add(new Department("土木", "土木"));
        college2.add(new Department("土木1", "土木1"));
        college2.add(new Department("土木2", "土木2"));

        //学院添加进学校
        university.add(college1);
        university.add(college2);

        //打印
        university.print();
    }
}
